<div class="wrap">
<h2>
	Mein Profil bearbeiten
</h2>
{if $resp_message == null}
	<div id="ajaxResponse1" class="ajaxResponse"></div>
{else}
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block">{$resp_message}</div>
{/if}
	<form name="edituser" id="edituser" method="post" action="?module={$smarty.get.module}">
		<input type="hidden" name="act" value="edituser" />
		{if $smarty.get.sub1 eq "profile"}
			<input type="hidden" name="user_id" value="{$THEUSER->user_id}" />
		{else}
			<input type="hidden" name="user_id" value="{$THEUSER->user_id}" />
		{/if}
		<table class="adminform" width="50%" align="center" cellpadding="5">
			<tr>
				<th width="33%" scope="row" valign="top">
				<label for="user_name">Benutzername</label></th>
				<td width="67%">
				<input name="user_name" id="user_name" type="text" readonly
				value="{$THEUSER->user_name}" size="40" maxlength="60"/>
				</td>
			</tr>
			<tr>
				<th width="33%" scope="row" valign="top">
				<label for="user_firstname">Vorname</label></th>
				<td width="67%">
				<input name="user_firstname" id="user_firstname" type="text" value="{$THEUSER->user_firstname}" size="40" maxlength="100"/></td>
			</tr>
			<tr>
				<th width="33%" scope="row" valign="top">
				<label for="user_lastname">Nachname</label></th>
				<td width="67%">
				<input name="user_lastname" id="user_lastname" type="text" value="{$THEUSER->user_lastname}" size="40" maxlength="100"/></td>
			</tr>
			<tr>
				<th width="33%" scope="row" valign="top">
				<label for="user_email">Email<br />(erforderlich)</label></th>
				<td width="67%">
				<input name="user_email" id="user_email" type="text" 
				value="{$THEUSER->user_email}" size="40" maxlength="100"/>
				</td>
			</tr>
			<tr>
				<th width="33%" scope="row" valign="middle">
				<label for="user_password">Passwort<br />(zweimal)</label></th>
				<td width="67%">
					<input name="user_password" id="user_password" type="password" value="{$THEUSER->user_password}" size="40" maxlength="64"/>
					<input name="user_password2" id="user_password2" type="password" value="{$THEUSER->user_password}" size="40" maxlength="64"/>
				</td>
			</tr>
			<tr>
				<th width="33%" scope="row" valign="middle">
				<label for="is_admin">Administrator</label></th>
				<td width="67%">
					{if $THEUSER->is_admin == "1"}
						<input checked name="is_admin" disabled="disabled" id="is_admin" type="checkbox" value="1"/>
					{else}
						<input name="is_admin" id="is_admin" disabled="disabled" type="checkbox" value="1"/>
					{/if}
				</td>
			</tr>
			<tr>
				<td width="67%" colspan="2"  class="submit" align="right">
					<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
				</td>
			</tr>
		</table>
	</form>
</div>
